package model;

import java.io.Serializable;

public class Book implements Serializable {
    private int id;
    private String name;
    private float price;
    private String writer;
    private String classify;
    private String state;

    public Book() {}
    public Book(String name, float price, String writer, String classify, String state) {
        this.name = name;
        this.price = price;
        this.writer = writer;
        this.classify = classify;
        this.state = state;
    }

    public void setId(int id){
        this.id=id;
    }
    public int getId(){
        return id;
    }
    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }
    public void setPrice(float price){
        this.price=price;
    }
    public float getPrice(){
        return price;
    }
    public void setWriter(String writer){
        this.writer=writer;
    }
    public String getWriter(){
        return writer;
    }
    public void setClassify(String classify){
        this.classify=classify;
    }
    public String getClassify(){
        return classify;
    }
    public void setState(String state){
        this.state=state;
    }
    public String getState(){
        return state;
    }
}
